
package ro.qi.framework.sys.scheduler.entities;

import ro.qi.framework.sys.entities.Entity;

public class SchedulerTaskCollection extends Entity {

	public SchedulerTaskCollection() {
		select();
	}

	public int getCollectionSize() {
		return getCollectionSize("tasks");
	}

	public int getTaskId(int index) {
		return getCollectionIntValue("tasks", "taskId", index);
	}

	public SchedulerTask getTask(int index) {
		return new SchedulerTask(getTaskId(index));
	}

}
